<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>角色</title>

    <!-- 页面图标 -->
    <link href="../img/bg/qishiLogo.png" rel="icon" type="image/x-ico">

    <!-- lib库 -->
    <script src="../lib/jquery-3.5.1.js"></script>
    <script src="../lib/bootstrap/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="../lib/bootstrap/css/bootstrap.min.css">
    <script src="../lib/vue.js"></script>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <!-- 公共类 -->
    <link rel="stylesheet" href="../css/com.css">
    <link rel="stylesheet" href="../css/hero.css">
</head>

<body>

    <div class="back"></div>

    <!-- NAV -->
    <nav id="nav" class="navbar navbar-default navbar-inverse">
        <div class="container">
            <div class="container-fluid">
                <!-- Brand and toggle get grouped for better mobile display -->
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                        data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="./index.html">首页</a>
                </div>

                <!-- Collect the nav links, forms, and other content for toggling -->
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                    <ul class="nav navbar-nav">
                        <li><a href="zhenrong.html">阵容推荐</a></li>
                        <li><a href="hero.html">英雄</a></li>
                        <li><a href="./equip.html">装备</a></li>
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
                                aria-haspopup="true" aria-expanded="false">羁绊 <span class="caret"></span></a>
                            <ul class="dropdown-menu">
                                <li><a href="race.html">种族</a></li>
                                <li><a href="occupation.html">职业</a></li>
                            </ul>
                        </li>
                    </ul>

                    <ul class="nav navbar-nav navbar-right">
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
                                aria-haspopup="true" aria-expanded="false">友情链接 <span class="caret"></span></a>
                            <ul class="dropdown-menu">
                                <li><a href="https://www.bilibili.com">BiliBili</a></li>
                                <li><a href="https://lol.qq.com/">LOL</a></li>
                                <li><a href="https://cn.vuejs.org/">Vue</a></li>
                                <li><a href="https://www.bootcss.com/">Bootstrap</a></li>
                            </ul>
                        </li>
                        <img src="../img/bg/logo.png" id="navLogo">
                    </ul>
                </div><!-- /.navbar-collapse -->
            </div><!-- /.container-fluid -->
        </div>
    </nav>

    <div class="container" id="mainBody">
        <!-- 下拉选项 -->
        <div id="dropdownGroup">
            <!-- 根据费用查 -->
            <div class="dropdown" id="dropdownForCost">
                <button class="btn btn-primary btn-lg dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown"
                    aria-haspopup="true" aria-expanded="true">
                    费用
                    <span class="caret"></span>
                </button>
                <ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
                    <li class="selectHero select_For_Cost " @click="selectHero($event)" value="1">1金币</li>
                    <li class="selectHero select_For_Cost " @click="selectHero($event)" value="2">2金币</li>
                    <li class="selectHero select_For_Cost " @click="selectHero($event)" value="3">3金币</li>
                    <li class="selectHero select_For_Cost " @click="selectHero($event)" value="4">4金币</li>
                    <li class="selectHero select_For_Cost " @click="selectHero($event)" value="5">5金币</li>
                    <li role="separator" class="divider"></li>
                    <li class="selectHero select_For_Cost " @click="selectHero($event)" value="6">6生命</li>
                </ul>
            </div>

        </div>

        <hr>
        <!-- Hero -->
        <div class="row" id="rowBox">
            <div class="col-sm-6 col-md-4"  v-for="item in heroList">
                <div class="thumbnail"   >
                    <img :src="`http://game.gtimg.cn/images/lol/tft/cham-icons/624x318/${item.number}.jpg`" @click="ret(item.number)">
                    <div class="caption">
                        <h3>{{item.name}}</h3>
                        <p class="p_herodata">
                            <span>费用：{{item.cost}}</span>
                            <span> 职业：{{item.occupation}}</span>
                        
                        </p>
                        <p class="p_herodata">
                            
                            <span id="number">{{item.number}}</span>
                            <span>种族：{{item.race}}</span>
                    </p>
                    </div>
                </div>
            </div>

        </div>
    </div>
</body>

   
<script src="../js/hero.js"></script>


</html>